<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" data-rule="required" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" class="form-control" name="row[money]" data-rule="required" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('GeneratedNum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" data-rule="required" type="text" value="">
            <p>{:__('GeneratedNum info')}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title prefix')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-prefix" class="form-control" name="row[prefix]" data-rule="required" type="text" value="">
            <p>{:__('Prefix info')}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Digits')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-digits" class="form-control" name="row[digits]" data-rule="required" type="text" value="8">
            <p>{:__('Digits info')}</p>
        </div>
    </div>

    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('DeadlineModel')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div>
                <label style="display:flex;">
                    <input type="radio" name="row[deadlineMode]" class="all-items-input" value="time" checked="checked">
                    <input id="c-deadline" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[deadline]" type="text" value="" style="float: left; margin-left: 5px;">
                  </label>
            </div>

            <div>
                <label>
                    <input type="radio" name="row[deadlineMode]" class="all-items-input" value="day" style="float: left;">
                    <div style="float: left; margin-left: 5px;line-height: 30px;">领劵当日起</div>
                    <input type="text" id="fixedDay" name="row[fixedDay]" class="form-control" style="width: 70px; float: left; margin-left: 5px;" data-widget-cid="widget-12" data-explain="<span class=&quot;text-danger&quot;>请输入有效期至</span>">
                    <div style="float: left; margin-left: 5px;line-height: 30px;">天内可用</div>
                </label>
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" class="form-control" name="row[description]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
